#ifndef _RFID_COMMON_H_
#define _RFID_COMMON_H_
#include <stdint.h>

#define MIN(a, b)	((a) < (b) ? (a) : (b))

uint16_t compute_average_adc_value(uint16_t *buf, uint32_t len);
uint8_t compute_average_time_value(uint8_t *time, uint32_t len);
void reverse_data (void *buf, int len);

#endif
